/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Beans;

import javax.faces.event.ActionEvent;

/**
 *
 * @author Karadak
 */
//@ManagedBean
//@RequestScoped
public class echoBean {

    /**
     * Creates a new instance of echoBean
     */
    public echoBean() {
    }
    
    private String name;
    private Integer count;
    
    public Integer getCount() {
        return count;
	}
 
    public String getName() {
            return name;
    }

    public void setName(String name) {
            this.name = name;
    }

    public void countListener (ActionEvent event){
            count = name.length();
            }
}
